<extend name="Public/base"/>
<block name="body">
    <form action="" method="post">
        <table class="table table-bordered">
            <tr>
                <td>标题</td>
                <td>
                    <input type="text" name="title" class="form-control" value="{$vo.title}"/>
                </td>
            </tr>
            <tr>
                <td>描述</td>
                <td>
                    <textarea class="form-control" name="description">{$vo.description}</textarea>
                </td>
            </tr>
            <tr>
                <td>语言</td>
                <td>
                    <select name="lang">
                        <option ></option>
                        <option value="1" {$tag[0]['lang'] == 1?'selected':' '} >Swift</option>
                        <option value="2" {$tag[0]['lang'] == 2?'selected':' '} >Javascript</option>
                        <option value="3" {$tag[0]['lang'] == 3?'selected':' '} >HTML</option>
                        <option value="4" {$tag[0]['lang'] == 4?'selected':' '} >CSS</option>
                        <option value="5" {$tag[0]['lang'] == 5?'selected':' '} >PHP</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>难度</td>
                <td>
                    <select name="lev">
                        <option ></option>
                        <option value="1" {$tag[0]['lev'] == 1?'selected':' '} >初级</option>
                        <option value="2" {$tag[0]['lev'] == 2?'selected':' '} >中级</option>
                        <option value="3" {$tag[0]['lev'] == 3?'selected':' '} >高级</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="text-center">
                    <input type="submit" value="修改" class="btn btn-primary">
                    <input type="hidden" name="itemid" value="{$vo.itemid}"/>
                    <input type="button" name="back" value="返回" class="btn btn-primary" onClick=history.back()>
                </td>
            </tr>
        </table>
    </form>
</block>